<?php

class Manager_Form_Login extends Zend_Form
{

    public function init()
    {
        $username = new Zend_Form_Element_Text('username');
        $username->setLabel('Username')->setRequired(true)->addValidator('notEmpty');
        $password = new Zend_Form_Element_Password('password');
        $password->setLabel('Password')->setRequired(true)->setAllowEmpty(false)->addValidator('StringLength',false,array(0,100));
        $submit = new Zend_Form_Element_Submit('Login');
        $submit->setLabel('login');
        $this->addElements(array($username,$password,$submit));
    }


}

